package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @package com.igeek.boot.entity
 * @Description 事件信息表
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/12/12 19:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//用来标示表名的信息
@TableName("zhrj_alarm_info")
@ApiModel("事件信息表")
public class ZhrjAlarmInfo {
    @ApiModelProperty("主键ID")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("部门id")
    @TableField("dept_id")
    private Long deptId;

    @ApiModelProperty("终端IP")
    @TableField("wan_ip")
    private String wanIp;

    @ApiModelProperty("采集时间")
    @TableField("event_time")
    private LocalDateTime eventTime;

    @ApiModelProperty("事件类型")
    @TableField("event_type")
    private Integer eventType;

    @ApiModelProperty("事件状态")
    @TableField("event_status")
    private Integer eventStatus;

    @ApiModelProperty("事件采集原因")
    @TableField("event_reasons")
    private String eventReasons;

    @TableField(exist = false)
    private Integer count;
}
